<script type="text/javascript">
<!--

//-->
</script>

	<!-- Invalid logged results -->
        {if (sizeof($invalidCollectedItems) > 0) || (sizeof($invalidRepaidItems) > 0)} 
            
        <div style="margin-top: 15px;">
            <table id="ivalidResultTbl" class="grid-report" cellpadding="0" cellspacing="0" style="width: 700px;">
               <caption>{translate}Updated data{/translate}</caption>
               <thead>
                   <tr>
                       <th class="first" style="width: 30px;">{translate}No.{/translate}</th>
                       <th style="width: 80px;">{translate}Patient's ID_1{/translate}</th>
                       <th style="width: 150px;">{translate}Full name{/translate}</th>
                       <!--<th style="width: 100px; text-align: left">{translate}Bill No_1{/translate}</th>-->
                       <th style="width: 120px;">{translate}Receipt code{/translate}</th>
                       <th style="width: 120px;">{translate}Money amount{/translate}</th>                       
                       <th class="last">{translate}Note{/translate}</th>
                   </tr>
               </thead>
               <tbody>
                    {if (sizeof($invalidCollectedItems) > 0)}
                        <tr><td colspan="6" align="left" class="first last" style="font-weight: bold;">{translate}Collected{/translate}</td></tr>
                        {assign var='first' value=1}
                        {foreach from=$invalidCollectedItems item=item}                               
                            <tr>                            
                                <td class="first">{$first++}</td>
                                <td>{$item.patient_code}</td>                            
                                <td>{$item.patient_name}</td>                                
                                <td>{$item.receipt_code}</td>
                                <td align="right">{$item.amount}</td>                                
                                <td class="last">{$item.date_modified}, {$item.user_modified}</td>
                            </tr>                                                                                                                                                                                       
                         {/foreach}
                     {/if}
                     
                     {if (sizeof($invalidRepaidItems) > 0)}
                        <tr><td colspan="6" align="left" class="first last" style="font-weight: bold;">{translate}Repaid{/translate}</td></tr>
                        
                        {assign var='first' value=1}
                        {foreach from=$invalidRepaidItems item=item}                               
                            <tr>                            
                                <td class="first">{$first++}</td>
                                <td>{$item.patient_code}</td>                            
                                <td>{$item.patient_name}</td>
                                <td>{$item.receipt_code}</td>                                
                                <td align="right">{$item.amount}</td>                                
                                <td class="last">{$item.date_modified}, {$item.user_modified}</td>
                            </tr>                                                                                                                                                                                                                 
                         {/foreach}
                     {/if}
                    
                </tbody>
           </table>
       </div>
       {/if}
